package com.hsy.crm.web.domain.entity;

import com.hsy.crm.web.domain.cm.Validate;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name="t_split_product_detail")
public class SplitProductDetail extends BaseEntity {

    @Transient
    private Long storeProductId;

    @Validate
    @Column(length = 20)
    private Long splitProductId;

    @Validate
    @Column(length = 20)
    private Long storeId;

    @Validate
    @Column(length = 20)
    private Long productId;

    @Validate
    @Column(length = 20)
    private Long companyId;

    @Validate
    @Column(length = 20)
    private Long price;

    @Validate
    @Column(length = 20)
    private Long unitId;

    @Validate
    @Column(length = 11)
    private Long number;

    /**
     * 类型  母件还是子件  1母件2子件
     */
    @Validate
    @Column(length = 11)
    private Integer type;

    @Validate
    @Column(length = 11)
    private Integer ord;

    public Long getStoreProductId() {
        return storeProductId;
    }

    public void setStoreProductId(Long storeProductId) {
        this.storeProductId = storeProductId;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getSplitProductId() {
        return splitProductId;
    }

    public void setSplitProductId(Long splitProductId) {
        this.splitProductId = splitProductId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getOrd() {
        return ord;
    }

    public void setOrd(Integer ord) {
        this.ord = ord;
    }
}
